package com.xunk.scene.mapper;

import com.xunk.scene.domain.DnakeEdgeSceneIdGen;
import org.apache.ibatis.annotations.Param;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.mapper
 * @ClassName: DnakeEdgeSceneIdGenMapper
 * @Author: luanzhiwei
 * @Description: 狄耐克网关设备边缘场景映射接口
 * @Date: 2021/6/7 11:01
 * @Version: 1.0
 */
public interface DnakeEdgeSceneIdGenMapper {

    /**
     * 新增记录
     *
     * @param dnakeEdgeSceneIdGen
     * @return
     */
    int insert(DnakeEdgeSceneIdGen dnakeEdgeSceneIdGen);

    /**
     * 查询记录
     *
     * @param deviceSn
     * @return
     */
    Long selectEdgeSceneIdByDnameDeviceSn(String deviceSn);

    /**
     * 更新边缘场景id
     *
     * @param deviceSn
     * @param now
     * @return
     */
    int update(@Param("deviceSn") String deviceSn, @Param("now") Long now);
}
